<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<script type="text/javascript">
	$(function() {
		var $grid = $('#grid_nation');
		var $title = '民族';
		var $baseUrl = 'root/nation';
		$grid.datagrid({
			title : $title + '列表',
			url : $baseUrl + '/page?sort=id',
			dialog : {
				url : $baseUrl,
				name : $title,
				create : {
					width : 400,
					height : 300
				},
				update : {
					width : 400,
					height : 300
				}
			},
			pagination : true,
			pageSize : 20,
			pageList : [ 20, 50, 100 ],
			columns : [ [ {
				field : 'id',
				width : 160,
				title : '代码'
			}, {
				field : 'name',
				width : 250,
				title : '民族'
			}] ],
			toolbar : [ $.crudgrid.buttons.create, $.crudgrid.buttons.update, $.crudgrid.buttons.remove,'-',$.crudgrid.buttons.refresh ]
		});
	});
</script>

<table id="grid_nation"></table>
